package com.kitbox.hl.meshow.framenwork.listener.lmpl;

import com.kitbox.hl.meshow.framenwork.listener.ListenerService;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.ExecutionListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Auther: honglei
 * @Date: 2019/8/13 11:19
 * @Description: 执行监听器  可以监听start，end事件
 */
@Component
public class MyExecutionListener implements ExecutionListener {

    @Autowired
    private ListenerService listenerService;


    @Override
    public void notify(DelegateExecution delegateExecution) throws Exception {
      listenerService.notify(delegateExecution);
    }
}